<template>
  <div>
    <div class="nei">
      <van-nav-bar title="详情" left-text="" left-arrow @click-left="fun()" />
      <h1>{{ this.$route.params.heihuaxx.name }}</h1>
      <p style="font-weight: 700; margin-top: 30px">含义</p>
      <p>{{ this.$route.params.heihuaxx.hanyi }}</p>
      <p style="font-weight: 700; margin-top: 10px">方法</p>
      <ul>
        <li>{{ this.$route.params.heihuaxx.fangfa }}</li>
        <li>{{ this.$route.params.heihuaxx.fangfa2 }}</li>
        <li>{{ this.$route.params.heihuaxx.fangfa3 }}</li>
        <li>{{ this.$route.params.heihuaxx.fangfa4 }}</li>
      </ul>
      <div class="main">
        <p
          style="
            font-weight: 700;
            width: 100%;
            height: 53px;
            text-align: center;
            line-height: 53px;
            border-bottom: 5px solid #f8f8f8;
          "
        >
          常用职业
        </p>
        <p style="font-weight: 700">以下职业常用</p>
        <footer>
          <div class="chang">
            <span>{{ this.$route.params.heihuaxx.zhiye }}</span>
            <p>{{ this.$route.params.heihuaxx.zhiye2 }}</p>
          </div>
          <div class="chang" @click="tiao()">
            <span>{{ this.$route.params.heihuaxx.zhiye3 }}</span>
            <p>{{ this.$route.params.heihuaxx.zhiye4 }}</p>
          </div>
        </footer>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      this.$router.push("/heihua");
    },
    tiao() {
      this.$router.push("/seo");
    },
  },
};
</script>

<style lang="scss" scoped>
* {
  font-size: 0.16rem;
}
.nei {
  padding: 0.2rem 0.15rem 0 0.15rem;
  line-height: 0.35rem;
}
h1 {
  font-size: 0.22rem;
  font-weight: 700;
}
footer {
  display: flex;
  .chang {
    width: 1.52rem;
    height: 0.92rem;
    border: 0.07rem solid #edeaea;
    margin-right: 0.2rem;
    span {
      font-weight: 700;
    }
    p {
      font-size: 0.12rem;
      line-height: 0.2rem;
    }
  }
}
</style>